

package io.modifier.basic.emo.photo.ui.viewer

import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.runtime.staticCompositionLocalOf
import androidx.compose.ui.graphics.Color

class PhotoViewerConfig(
    val blankColor: Color = Color.LightGray
)

val defaultPhotoViewerConfig by lazy { PhotoViewerConfig() }
val LocalPhotoViewerConfig = staticCompositionLocalOf { defaultPhotoViewerConfig }

@Composable
fun DefaultPhotoViewerConfigProvider(content: @Composable () -> Unit) {
    CompositionLocalProvider(LocalPhotoViewerConfig provides defaultPhotoViewerConfig) {
        content()
    }
}
